package org.example.entity;

import org.example.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class MyClass01 {

    @Value("${my.num}")
    public int abc;
    @Value("${my.str}")
    public String str;
    @Value("${my.array}")
    public String[] arr;
    @Value("${my.list}")
    public List<String> sList;

    /*
        @Value的使用场景
            例如：JDBC
     */





}
